package Vista;
import java.awt.event.ActionListener;

import javax.swing.DebugGraphics;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JPanel;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class Menu extends javax.swing.JFrame {
	private JPanel Panelmenu;
	private JButton btningrediente;
	private JButton btnorden;
	private JButton btnproducto;
	private JButton btncategoria;
	private JButton btncompra;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				Menu inst = new Menu();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public Menu() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			this.setIconImage(new ImageIcon(getClass().getClassLoader().getResource("Imagenes/C02-fastfood.png")).getImage());
			{
				Panelmenu = new JPanel();
				getContentPane().add(Panelmenu);
				Panelmenu.setBounds(4, 6, 462, 291);
				Panelmenu.setLayout(null);
				Panelmenu.setDebugGraphicsOptions(DebugGraphics.BUFFERED_OPTION);
				{
					btningrediente = new JButton();
					Panelmenu.add(btningrediente);
					btningrediente.setText("Ingrediente");
					btningrediente.setBounds(58, 52, 132, 53);
					btningrediente.setFont(new java.awt.Font("Bookman Uralic",2,16));
					btningrediente.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Imagenes/Tomate.png")));
				}
				{
					btncompra = new JButton();
					Panelmenu.add(btncompra);
					btncompra.setText("Compra");
					btncompra.setBounds(250, 52, 132, 53);
					btncompra.setFont(new java.awt.Font("Bookman Uralic",2,16));
					btncompra.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Imagenes/comidarapida.png")));
				}
				{
					btncategoria = new JButton();
					Panelmenu.add(btncategoria);
					btncategoria.setText("Categoria");
					btncategoria.setBounds(17, 144, 132, 53);
					btncategoria.setFont(new java.awt.Font("Bookman Uralic",2,14));
					btncategoria.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Imagenes/comida-rapidapizza.png")));
				}
				{
					btnorden = new JButton();
					Panelmenu.add(btnorden);
					btnorden.setText("Orden");
					btnorden.setBounds(300, 143, 132, 53);
					btnorden.setFont(new java.awt.Font("Bookman Uralic",2,16));
					btnorden.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Imagenes/comida-rapida.png")));
				}
				{
					btnproducto = new JButton();
					Panelmenu.add(btnproducto);
					btnproducto.setText("Producto");
					btnproducto.setBounds(161, 212, 132, 53);
					btnproducto.setFont(new java.awt.Font("Bookman Uralic",2,14));
					btnproducto.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Imagenes/C02-fastfood.png")));
				}
			}
			pack();
			this.setSize(464, 329);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	public void addListener(ActionListener actionListener) {
		btncategoria.addActionListener(actionListener);
		btningrediente.addActionListener(actionListener);
		btnorden.addActionListener(actionListener);
		btnproducto.addActionListener(actionListener);
		btncompra.addActionListener(actionListener);
	}

}
